import 'package:flutter/material.dart';

// 右上角 更多按钮，可能很多页面都有，所以动态传回调函数
class MoreAction extends StatelessWidget {
  final VoidCallback? onPressed;
  const MoreAction({
    super.key,
    this.onPressed,
  });

  @override
  Widget build(BuildContext context) {
    return IconButton(
      icon: const Icon(Icons.more_horiz),
      onPressed: onPressed,
    );
  }
}
